public class test {
    public static int max(int a,int b)
    {
        return a>b?a:b;
    }
    public static double max(double a,double b,double c)
    {
        double temp=a>b?a:b;
        return temp>c?temp:c;
    }
    public static void main(String[] args) {
        System.out.println("2个整数的最大值: " + max(15, 28));
        System.out.println("3个小数的最大值: " + max(3.14, 2.71, 5.67));
        System.out.println("3个小数的最大值: " + max(9.8, 10.2, 8.9));
    }
}
